package com.wantong.voice.webrtc;

import cn.hutool.core.io.FileUtil;

import java.io.File;

/**
 * Test
 *
 * @author : stan
 * @version : 1.0
 * @date :  2021/10/12 12:12 下午
 **/
public class Test {
    public static void main(String[] args) {

        File file = new File(System.getProperty("user.dir") + "/rec.pcm");
        byte[] origin = FileUtil.readBytes(file);
        FileUtil.writeBytes(VoiceUtils.nsAndAgc(origin), file.getAbsolutePath() + ".agc.pcm");
    }
}
